export interface MenuDataType {
  children: MenuItem[]
}

export interface MenuItem {
  children?: MenuItem[]
  hasChildren?: boolean
  id: string
  name: string
  select: boolean
  level?: number
  // code: null
  // deleted: boolean
  // pid: string
  // status: null
  // toCode: null
  // type: number
}

export interface AddMenuParamsType {
  pid: string
  code: string
  name: string
  // level: 0
  // pid: 0
  // select: true
  // status: 0
  // toCode: 'string'
  // type: 0
}
export interface UpdateMenuParamsType {
  code: string
  name: string
  id: string
}
